<!--  -->
<template>
  <div class='wodeshouc'>
       <van-nav-bar
      title="我的收藏"
      left-text="返回"
      
      @click-left="$router.back()"
    />
    <main class="content" ref="main">
       
            
        <van-cell v-for="citem in data" :key="citem.id" :title="citem.name.split(' ')[0]" 
            :icon="citem.cover"
            :label="citem.price"
            @click="$router.push({path:'/delet',query:{id:citem.id}})"
            is-link/>
        
        
            
        
    </main>
  </div>
</template>

<script>
import { wodeshouclist } from "network/api.js";
export default {
name:'',
  data () {
    return {
        data:[]
    };
  },


  computed: {},


  methods: {
      async requestwodeshouclist(){
          const {errcode,errmsg,data}=await wodeshouclist()
          if(errcode!=0) return this.$toast(errmsg)
          this.data=data
        
      }
  },
  created(){
      this.requestwodeshouclist()
  }
}

</script>
<style lang='less' scoped>
    .van-icon__image{
            font-size: 50px;
            }
</style>